wayland: Fix get_frame_extents
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 17 Mar 2014 19:41:08 +0000 (15:41 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 17 Mar 2014 19:51:46 +0000 (15:51 -0400)
We need to traverse up the hierarchy for windows here. Just use
our existing helper method for this.

gdk/wayland/gdkwindow-wayland.c

index c419714e746040e3f4d4f7e54a0c29990e28ac60..0b502fdd82a6fae423b20ec320ca507797a91a2f 100644 (file)
@@ -1667,8 +1667,7 @@ static void
 gdk_wayland_window_get_frame_extents (GdkWindow    *window,
                                       GdkRectangle *rect)
 {
-  rect->x = window->x;
-  rect->y = window->y;
+  gdk_wayland_window_get_fake_root_coords (window, &rect->x, &rect->y);
   rect->width = window->width;
   rect->height = window->height;
 }